﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Rendiciones.Web.infraestructura;

namespace Rendiciones.Web
{
    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void BtnProbarClick(object sender, EventArgs e)
        {
            var template = new FileInfo(Request.PhysicalApplicationPath + "templates\\Comprobante caja chica.xlsx");
            var temporal = new FileInfo(Request.PhysicalApplicationPath + "tmp\\Comprobante caja chica.xlsx");
            if (temporal.Exists)
                temporal.Delete();
            template.CopyTo(temporal.FullName);

            Modulos.Rendiciones.Excel.Escribir(temporal, "A", 15, "mmmm");
            Modulos.Rendiciones.Excel.Escribir(temporal, "A", 16, "mmmm");
            Modulos.Rendiciones.Excel.Escribir(temporal, "A", 17, "mmmm");
            Modulos.Rendiciones.Excel.Escribir(temporal, "A", 18, "mmmm");
        }
    }
}